package org.fujay.langchain4jserver.domain.model.event;

import lombok.Getter;
import org.fujay.langchain4jserver.domain.model.vo.ModelId;
import org.springframework.context.ApplicationEvent;

/**
 * 模型启用事件
 */
@Getter
public class ModelEnabledEvent extends ApplicationEvent {

    private final ModelId modelId;

    /**
     * Create a new ModelEnabledEvent.
     *
     * @param source  the component that published the event
     * @param modelId the ID of the enabled model
     */
    public ModelEnabledEvent(Object source, ModelId modelId) {
        super(source);
        this.modelId = modelId;
    }
}
